Adding a component

Simplify the graphics creation process by adding components to the graphic instead of drawing all the drawing objects yourself.

Adding components of the same type creates a reference between them and they share the same definition. To add a component without a reference, hold CTRL while dragging.

To add a component:

  1. Open Graphics Editor.
  2. View > Layers > select a layer.
  3. Components > select a category.
  4. Select a component category and a component.
  5. Drag the component to the work area. To add a component without a reference to other components of the same type, hold the CTRL key while dragging.
  6. Enter a name in the Properties pane. A name must be entered if you want to bind the object.
  7. Adjust the appearance of the component using the Options toolbar or in the Properties pane.
  8. On the File menu, click Save.

NOTE:

When adding a component from the Library, two elements are added to the TGML document:
  • A <Use> element is added as a reference to the component. The <Use> element and its configured attributes are drawn and animated on the screen when running the solution in the browser.
  • A <Component> definition is added to the document in a <Definitions> sub-tree.

Editing the <Component> definition from within the TGML document is not supported. For more information on editing components, see Adding custom components.